package com.xhs.main.controller.xsb;

import com.xhs.main.entity.xsb.Address;
import com.xhs.main.service.xsb.impl.AddressServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author hjr
 * @create 2020-10-16-上午 11:03
 */
@Controller
public class AddressTest {

    @Autowired
    AddressServiceImpl addressServiceImpl;

    @RequestMapping("/address")
    public String hello(Model model){
        Address address = addressServiceImpl.getOneById(11);
        model.addAttribute("address",address);
        return "/a.html";
    }
}
